#ifndef _MSC_VER // FPGA specific methods

void* realloc(void* p, size_t size)
{
	return NULL;
}

int fcntl(int fd, int cmd)
{
	return 0;
}

void* operator new (size_t s) {
	//printf("new -> ");
	return malloc(s);
}

void operator delete(void* o) {
	printf("delete called\n");
}

void* operator new[] (size_t s) throw (bad_alloc) {
	printf("new[] throw\n");
	while(1);
	return (void*) 123;
}

void* operator new[] (size_t s, const nothrow_t& a) throw () {
	printf("new[] throw 2\n");
	while(1);
}

#endif // End FPGA specific methods
